/*
 * 23/10/2011 - 13:07
 */
package org.nettyflux.communicator;

import java.io.IOException;
import org.nettyflux.netmessages.NetworkMessage;

/**
 * @author Victor Williams Stafusa da Silva
 */
public interface Receiver<M extends NetworkMessage> {
    public M receive() throws IOException;
    public void close() throws IOException;
    public boolean isClosed();
}
